package com.nbwyctf.helper.feign;

import feign.RetryableException;
import feign.Retryer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author chetaifu
 */
public class MyRetryer implements Retryer {
    private static final Logger logger = LoggerFactory.getLogger(MyRetryer.class);
    @Override
    public void continueOrPropagate(RetryableException e) {
        logger.error("do request error", e);
    }

    @Override
    public Retryer clone() {
        return this;
    }
}
